package com.wp.mapper;

import com.wp.pojo.User;
import com.wp.pojo.UserResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    List<UserResult> getUserList(@Param("query") String query,
                                 @Param("startNum") Integer startNum,
                                 @Param("size") Integer size);

    Long getUserCount(@Param("query") String query);

    void updateUser(@Param("uid") String uid,
                    @Param("userStatus") Integer UserStatus);

    void resetUserPassword(User user);

    String getUserName(String userUid);

    String getToUserName(String toUserUid);

    void updateCommentStatus(User user);
}
